#include <stdio.h>
#include <stdlib.h>
#include <time.h>
#include "merge.h"
#include "sort.h"

int main()
{
    int V1[50],V2[50],temp[100];
    srand(time(NULL));

    int i;
    for (i=0;i<50;i++)
    {
        V1[i] = rand()%500;
    }
    for (i=0;i<50;i++)
    {
        V2[i] = rand()%500;
    }
    heapsort(V2,50);
    heapsort(V1,50);
    merge(V1,50,V2,50,temp);
    for (i=0;i<50;i++)
        printf("%d ",V1[i]);

        printf("\n\n\n");
    for (i=0;i<50;i++)
        printf("%d ",V2[i]);

        printf("\n\n\n");
    for (i=0;i<100;i++)
        printf("%d ",temp[i]);

    return 0;
}
